{% extends "../base.html" %}

{% block title %}Create participant{% endblock %}
{% block header %}Create participant{% endblock %}

{% block content %}
		<a href="/projects">Projects</a>/
		<a href="/editProjectForm?projectId={{ projectId }}">Project</a>/
		<a href="/participants?projectId={{ projectId }}">Participants</a>

		<form method="POST" action="/createParticipantAction">
			<table>
				<tr>
					<td>
						<label for="email">Email: </label>
					</td>
					<td>
						<input id="email" name="email"></input>		
					</td>
					<td>
						<label >Roles: </label>
					</td>
					<td>
						<table>
						
						{% for role in roles %}
						<tr>
							<td><input type="checkbox" name="{{role.key}}"></input></td>
							<td>{{ role.name }}</td>
						</tr>
						
						{% endfor %}
						</table>		
					</td>
				</tr>
			</table>
			
			<input type="hidden" name="projectId" value="{{ projectId }}"></input>
			<input type="submit" value="Create"></input>
		</form>

{% endblock %}
